import {createRouter, createWebHistory,RouteRecordRaw} from 'vue-router'

//引入路由组件
const routes:Array<RouteRecordRaw> = [
    {
        path:'/',
        name:'Login',
        component:()=>import('../components/Login.vue')
    },
    {
        path:'/Show',
        name:'Show',
        component:()=>import('../components/Show.vue')
    }
]
//创建路由实例
const router = createRouter({
    history:createWebHistory(),
    routes
})
//导出路由
export default router




